package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.DbsqProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface DbsqProductService extends BaseService<DbsqProductBean> {

	DbsqProductBean getDbsqProductBeanById(String id) throws Exception;
	
	void removeDbsqProductBeanById(String id) throws Exception;
	
	void removeDbsqProductBeanByIds(String ids) throws Exception;
	
	DbsqProductBean saveDbsqProductBean(DbsqProductBean crm) throws Exception;
	
	DbsqProductBean updateDbsqProductBean(DbsqProductBean crm) throws Exception;
	
	Page<DbsqProductBean>  findDbsqProductBeanByCond(DbsqProductBean bean,
			Page<DbsqProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveDbsqProductBeanExt(String sql) throws Exception;

	String findDbsqProductBeanExtCreate(String tableName) throws Exception;

	String findDbsqProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findDbsqProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasDbsqProductBeanExtData(String tableName, String id)
			throws Exception;
}